Builder
class Builder : GeneratedMessage.Builder<BuilderT> , ModuleConfigProtos.ModuleConfig.DetectionSensorConfigOrBuilder
Detection Sensor Module Config
Content copied to clipboard
meshtastic.ModuleConfig.DetectionSensorConfig
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The type of trigger event to be used
Content copied to clipboard
.meshtastic.ModuleConfig.DetectionSensorConfig.TriggerType detection_trigger_type = 7;
Link copied to clipboard
Whether the Module is enabled
Content copied to clipboard
bool enabled = 1;
Link copied to clipboard
Interval in seconds of how often we can send a message to the mesh when a
trigger event is detected
Content copied to clipboard
uint32 minimum_broadcast_secs = 2;
Link copied to clipboard
GPIO pin to monitor for state changes
Content copied to clipboard
uint32 monitor_pin = 6;
Link copied to clipboard
Friendly name used to format message sent to mesh
Example: A name "Motion" would result in a message "Motion detected"
Maximum length of 20 characters
Content copied to clipboard
string name = 5;
Link copied to clipboard
Send ASCII bell with alert message
Useful for triggering ext. notification on bell
Content copied to clipboard
bool send_bell = 4;
Link copied to clipboard
Interval in seconds of how often we should send a message to the mesh
with the current state regardless of trigger events When set to 0, only
trigger events will be broadcasted Works as a sort of status heartbeat
for peace of mind
Content copied to clipboard
uint32 state_broadcast_secs = 3;
Link copied to clipboard
Whether or not use INPUT_PULLUP mode for GPIO pin
Only applicable if the board uses pull-up resistors on the pin
Content copied to clipboard
bool use_pullup = 8;
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getDetectionTriggerType(): ModuleConfigProtos.ModuleConfig.DetectionSensorConfig.TriggerType
The type of trigger event to be used
Content copied to clipboard
.meshtastic.ModuleConfig.DetectionSensorConfig.TriggerType detection_trigger_type = 7;
Link copied to clipboard
The type of trigger event to be used
Content copied to clipboard
.meshtastic.ModuleConfig.DetectionSensorConfig.TriggerType detection_trigger_type = 7;
Link copied to clipboard
Whether the Module is enabled
Content copied to clipboard
bool enabled = 1;
Link copied to clipboard
Interval in seconds of how often we can send a message to the mesh when a
trigger event is detected
Content copied to clipboard
uint32 minimum_broadcast_secs = 2;
Link copied to clipboard
GPIO pin to monitor for state changes
Content copied to clipboard
uint32 monitor_pin = 6;
Link copied to clipboard
Friendly name used to format message sent to mesh
Example: A name "Motion" would result in a message "Motion detected"
Maximum length of 20 characters
Content copied to clipboard
string name = 5;
Link copied to clipboard
Send ASCII bell with alert message
Useful for triggering ext. notification on bell
Content copied to clipboard
bool send_bell = 4;
Link copied to clipboard
Interval in seconds of how often we should send a message to the mesh
with the current state regardless of trigger events When set to 0, only
trigger events will be broadcasted Works as a sort of status heartbeat
for peace of mind
Content copied to clipboard
uint32 state_broadcast_secs = 3;
Link copied to clipboard
Whether or not use INPUT_PULLUP mode for GPIO pin
Only applicable if the board uses pull-up resistors on the pin
Content copied to clipboard
bool use_pullup = 8;
Link copied to clipboard
Link copied to clipboard
open fun mergeFrom(other: ModuleConfigProtos.ModuleConfig.DetectionSensorConfig): ModuleConfigProtos.ModuleConfig.DetectionSensorConfig.Builder
open fun mergeFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): ModuleConfigProtos.ModuleConfig.DetectionSensorConfig.Builder
Link copied to clipboard
open fun setDetectionTriggerType(value: ModuleConfigProtos.ModuleConfig.DetectionSensorConfig.TriggerType): ModuleConfigProtos.ModuleConfig.DetectionSensorConfig.Builder
The type of trigger event to be used
Content copied to clipboard
.meshtastic.ModuleConfig.DetectionSensorConfig.TriggerType detection_trigger_type = 7;
Link copied to clipboard
open fun setDetectionTriggerTypeValue(value: Int): ModuleConfigProtos.ModuleConfig.DetectionSensorConfig.Builder
The type of trigger event to be used
Content copied to clipboard
.meshtastic.ModuleConfig.DetectionSensorConfig.TriggerType detection_trigger_type = 7;
Link copied to clipboard
Whether the Module is enabled
Content copied to clipboard
bool enabled = 1;
Link copied to clipboard
open fun setMinimumBroadcastSecs(value: Int): ModuleConfigProtos.ModuleConfig.DetectionSensorConfig.Builder
Interval in seconds of how often we can send a message to the mesh when a
trigger event is detected
Content copied to clipboard
uint32 minimum_broadcast_secs = 2;
Link copied to clipboard
GPIO pin to monitor for state changes
Content copied to clipboard
uint32 monitor_pin = 6;
Link copied to clipboard
Friendly name used to format message sent to mesh
Example: A name "Motion" would result in a message "Motion detected"
Maximum length of 20 characters
Content copied to clipboard
string name = 5;
Link copied to clipboard
open fun setNameBytes(value: ByteString): ModuleConfigProtos.ModuleConfig.DetectionSensorConfig.Builder
Friendly name used to format message sent to mesh
Example: A name "Motion" would result in a message "Motion detected"
Maximum length of 20 characters
Content copied to clipboard
string name = 5;
Link copied to clipboard
Send ASCII bell with alert message
Useful for triggering ext. notification on bell
Content copied to clipboard
bool send_bell = 4;
Link copied to clipboard
open fun setStateBroadcastSecs(value: Int): ModuleConfigProtos.ModuleConfig.DetectionSensorConfig.Builder
Interval in seconds of how often we should send a message to the mesh
with the current state regardless of trigger events When set to 0, only
trigger events will be broadcasted Works as a sort of status heartbeat
for peace of mind
Content copied to clipboard
uint32 state_broadcast_secs = 3;
Link copied to clipboard
open fun setUsePullup(value: Boolean): ModuleConfigProtos.ModuleConfig.DetectionSensorConfig.Builder
Whether or not use INPUT_PULLUP mode for GPIO pin
Only applicable if the board uses pull-up resistors on the pin
Content copied to clipboard
bool use_pullup = 8;